import request from  "../../utils/request"

// 登录
export const loginApi=(data)=>request.post("/users/login",data)

// 更新用户信息
export const updateUserInfoApi=(data)=>request.put("/users",data)

// 上传头像
export const uploadAvatarApi=(formData)=>{
  return request.post("/users/upload/avatar", formData, {
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}


